package Fejl;

public class SpeachBubble {
	public void write(int times) throws MyCheckedException, AnotherCheckedException {
		
		if (times > 10) {
			throw new MyCheckedException();
		}
		
		if (times == 0) {
			//1
			throw new AnotherCheckedException();
		}
		
		for(int i = times;i>0;i--) {
			System.out.println("Hello!");
		}
	}
}
